{% extends "flow-base.html" %}

{% block flow_header %}
<script type="text/javascript">
$(document).ready(function(){

    $(".form-row :input").attr( {readOnly:'readOnly'});
     $(".form-row :input").css({"background-color": "white"});
    //$("#dialag").dialog();
});

function taskfail(){
    var id = $("input[name=tid]").val();
    $.post("/flow/ajax_taskfail/", {'id': id},function(info){
	    if(info == 'true'){
            alert("提交成功"); 
        }else{
            alert("提交失败"); 
        }
        window.location.href = '/flow/flowaction/'+ id +'/0/';
	});   
}


</script>

{% endblock %}




{% block flow_title %}
确认任务 
{% endblock %} 

{%block task_action %}
        <div style='text-align:center'>
            <button type="button" style="margin-right:40px;width:80px" onclick="taskfail()" >任务失败</button>
            <input type="submit" value="任务完成"  style="margin-right:40px;width:80px" />
        </div>

{% endblock %}
  
